﻿/*****************************************
 * 
 *  copyright (c) by ylshen
 * 
 *  author : ylshen (syl.lucky@gmail.com)
 *  
 *  created at : 08-05-21
 * 
 **************************************** */

using System;
using System.Collections.Generic;
using System.Text;

namespace JYStockAnalyser.DA
{
    public class ORException : ApplicationException
    {
        byte m_exNumber;

        public ORException()
        {
            m_exNumber = ORException.ERROR_OTHER;
        }

        public ORException(byte exNumber)
        {
            m_exNumber = exNumber;
        }

        public byte ErrorNumber
        {
            get { return m_exNumber; }
            set { m_exNumber = value; }
        }

        /// <summary>
        /// 名称已存在
        /// </summary>
        public const byte ERROR_NAME_EXISTS = 7;

        /// <summary>
        /// 其它错误
        /// </summary>
        public const byte ERROR_OTHER = 110;
    }
}
